package com.squirrel.michale;

import java.util.Scanner;

/**
 *
 * 反转字符串中的元音字母----注意字母大小写，时间复杂度O(N)！！！
 *
 *
 *
 *
 *
 */



public class LeetCode0345 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String parkingStatus = in.nextLine();
        String s = reverseVowels(parkingStatus);
        System.out.println(s);
    }

    public static String reverseVowels(String s) {
        String a="aeiouAEIOU";
        char[] s1=s.toCharArray();
        int len=s.length();
        int i=0,j=len-1;
        while(i<j) {
            while(!a.contains(s1[i]+"")&&i<j) {
                i++;
            }
            while(!a.contains(s1[j]+"")&&i<j) {
                j--;
            }
            if(i<j) {
                char c=s1[i];
                s1[i]=s1[j];
                s1[j]=c;
            }
            i++;
            j--;
        }
        return new String(s1);
    }

}
